/*
 * @Author: 吴思浪
 * @Date: 2021-12-12 11:01:26
 * @LastEditors: 胡俊/treence
 * @LastEditTime: 2022-06-14 17:39:03
 * @Description: 
 * @Company: 3xData
 * @youWant: add you want
 */
import { peopleManage_list, peopleManage_update, peopleManage_form, peopleManage_resetPassword, peopleManage_quit } from '@/api/peopleManage.js'


const peopleManage = {
    state: {

    },
    mutations: {
        save_area (state, data) {
            state.area = data
        },


    },
    actions: {
        peopleManage_list ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                peopleManage_list(obj, function (data) {
                    resolve(data)
                })
            })
        },
        peopleManage_update ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                peopleManage_update(obj, function (data) {
                    resolve(data)
                })
            })
        },
        peopleManage_form ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                peopleManage_form(obj, function (data) {
                    resolve(data)
                })
            })
        },
        peopleManage_resetPassword ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                peopleManage_resetPassword(obj, function (data) {
                    resolve(data)
                })
            })
        },
        peopleManage_quit ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                peopleManage_quit(obj, function (data) {
                    resolve(data)
                })
            })
        },


    }
}

export default peopleManage